// pages/order/orderComment/gitComment/gitComment.js
Page({
  data:{
    isCanShow: 0
  },
  return: function(){
    wx.switchTab({
      url: '../../../index/index',
    })
  },

  onLoad: function(){
    this.checkIsCanShow();
    // wx.request({
    //   url: 'https://order.xiaxueruo.com/api/comment/update?comment_id='+wx.getStorageSync('comment_id'),
    //   success: function(res){
    //     console.log('res', res.data.data.commentList)
    //     console.log('res----', res.data.data.commentList[0].evaluate)
    //     wx.setStorageSync('evaluate', res.data.data.commentList[0].evaluate)
    //   }
    // })
  },

  /**
   * 获取接口数据，控制是否显示敏感信息
   */
  checkIsCanShow() {
    wx.request({
      url: 'https://order.xiaxueruo.com/api/order/isCanShow/',
      success: res => {
        this.setData({
          isCanShow: res.data
        })
      }
    })
  },
})
